home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
PCW_C.ARJ
/
MENU.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-08
|
2KB
|
111 lines
/*$no trace */ /* $no list <<<menu.h>>> */
/**********************************************************/
/* File Id. Menu.H */
/* */
/* (c) Copyright 1989-90 by Stan Milam */
/* */
/* Comments: This file will contain the definitions for */
/* Menus. */
/**********************************************************/
#ifndef __POWERC
#pragma pack(1)
#endif
#ifdef __ZTC__
#pragma align 1
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef struct menu_wnd {
WNDPTR *wnd;
int urow,ucol,lrow,lcol;
int fcolor,bcolor;
int btype, bfclr,bbclr;
char *title;
int tvloc, thloc, tfclr, tbclr;
int cfclr, cbclr;
}MENU_WND;
typedef struct p_menu_list {
char select_key;
char *item;
}PMNUFLDS;
typedef struct {
MENU_WND pwnd;
int bar_pos;
PMNUFLDS *plist;
}PMNUTYPE;
typedef struct {
char select_key;
int select_col;
char *item;
char *item_msg;
}LMNUFLDS;
typedef struct l_menu_type {
MENU_WND lwnd;
int bar_pos, wnd_pos;
LMNUFLDS **llist;
}LMNUTYPE;
typedef struct {
char *item_fld;
char *item;
char *item_msg;
int select_col;
}LM_MNUFLDS;
typedef struct lm_menu_type {
MENU_WND lwnd;
int bar_pos, wnd_pos;
LM_MNUFLDS **llist;
}LM_MNUTYPE;
typedef struct pick_list {
MENU_WND plwnd;
char **list;
int bar_pos, off;
}PICKLIST;
typedef struct {
char select_key;
int select_col;
char *item;
}TMNUFLDS;
typedef struct t_menu_type {
MENU_WND twnd;
int bar_pos, wnd_pos;
TMNUFLDS **tlist;
}TMNUTYPE;
#ifndef __POWERC
#pragma pack()
#endif
#ifdef __ZTC__
#pragma align
#endif
WNDPTR *makepmenu(PMNUTYPE *menu);
WNDPTR *makelmenu(LMNUTYPE *menu);
WNDPTR *make_pick_list(PICKLIST *menu);
WNDPTR *maketmenu(TMNUTYPE *menu);
int get_pick_list(PICKLIST *menu);
int pmenuinput(PMNUTYPE *menu);
int lmenuinput(LMNUTYPE *menu);
int tmenuinput(TMNUTYPE *menu);
#ifdef __cplusplus
}
#endif
/*$trace */ /* $list <<<menu.h>>> */